<?php
Router::connect('/inbox', array('plugin'=>'messages','controller' => 'messages', 'action' => 'index','inbox'));
Router::connect('/sent_messages', array('plugin'=>'messages','controller' => 'messages', 'action' => 'index','sent'));

Router::connect('/inbox/*', array('plugin'=>'messages','controller' => 'messages', 'action' => 'index','type'=>'inbox'));
Router::connect('/sent_messages/*', array('plugin'=>'messages','controller' => 'messages', 'action' => 'index','type'=>'sent'));

?>